﻿// JSON C# Class Generator
// http://at-my-window.blogspot.com/?page=json-class-generator

using System;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;
using TomatoSynchronizer.Store;
using System.Collections.Generic;
using System.Collections.Specialized;

namespace TomatoSynchronizer.Entities 
{

    public class ProductVariantGroup 
    {

        public ProductVariantGroup()
        {
        }

        public ProductVariantGroup(string json)
         : this(JObject.Parse(json))
        {
        }

        private JObject __jobject;
        public ProductVariantGroup(JObject obj)
        {
            this.__jobject = obj;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        private ProductVariantGroupStore store;

        public ProductVariantGroupStore Storetore
        {
           get{
            return store;}
           set{
            store = value;}
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _products_variants_groups_id;
        public string products_variants_groups_id
        {
            get
            {
                if(_products_variants_groups_id == null)
                    _products_variants_groups_id = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "products_variants_groups_id"));
                return _products_variants_groups_id;
            }
            set
            {
                _products_variants_groups_id = value;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _products_variants_groups_name;
        public string products_variants_groups_name
        {
            get
            {
                if(_products_variants_groups_name == null)
                    _products_variants_groups_name = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "products_variants_groups_name"));
                return _products_variants_groups_name;
            }
            set
            {
                _products_variants_groups_name = value;
            }
        }

        private List<ProductVariantGroupEntry> _entries;
		
		public List<ProductVariantGroupEntry> Entries {
			get { return _entries; }
			set { _entries = value; }
		}

    }
}
